<?php
/**
 * 
 */
?>
<div class="search-box">
    <form id='search-box' class="sbox" method="GET" action="<?php echo $this->actionUrl ?>">

	<input id ='keyword' name='keyword' class="txt-keyword" value="" placeholder="Keyword" maxlength="<?php echo $this->maxLength ?>" />
	<input class="btn-search" type="submit" value="" />
    </form>
    <script type="text/javascript">
	$('#search-box').submit(function() {
	    var text = $('#keyword').val();
	    text = $.trim(text);
	    if (text) {
		if (text.length < 3) {
		    alert('Please enter the keyword be at least 3 characters.');
		    return false;
		}
		return true;
	    } else {
		alert('Please enter your keyword before searching.');
		return false;
	    }
	})
    </script>
</div>
